package com.atguigu.tingshu.model.order;

import com.atguigu.tingshu.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * <p>
 *     订单减免
 * </p>
 * @author sun
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("order_derate")
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
public class OrderDerate extends BaseEntity {

	@Serial
	private static final long serialVersionUID = 1L;
	/**
	 * 订单id
	 */
	@TableField("order_id")
	private Long orderId;
	/**
	 * 减免类型 1405-专辑折扣 1406-VIP服务折
	 */
	@TableField("derate_type")
	private String derateType;
	/**
	 * 减免金额
	 */
	@TableField("derate_amount")
	private BigDecimal derateAmount;
	/**
	 * 备注
	 */
	@TableField("remarks")
	private String remarks;

}